package com.zjw.system;

/**
 * 系统常量类
 *
 * @author Wei
 */
public class SystemConstant {

    /**
     * 验证码图片位数
     */
    public static final int CAPTCHA_IMG_LEN = 5;

    /**
     * 验证码图片宽度
     */
    public static final int CAPTCHA_IMG_WIDTH = 90;

    /**
     * 验证码图片高度
     */
    public static final int CAPTCHA_IMG_HEIGHT = 25;

    /**
     * 验证码有效时间(分钟)
     */
    public static final int CAPTCHA_VALID_TIME_MINUTE = 5;


    /**
     * jwt有效持续时间(小时)
     */
    public static final int JWT_EFFECTIVE_DURATION_HOUR = 13;

    /**
     * jwt密钥
     */
    public static final String JWT_SECRET_KEY = "lkzy_zjw_2384963497";

    /**
     * 默认头像url
     */
    public static final String DEFAULT_AVATAR_URL = "https://lkzy-markdown-img.oss-cn-beijing.aliyuncs.com/md-img/20240104085149.png";

    /**
     * oss端点
     */
    public static final String OSS_ENDPOINT = "oss-cn-beijing.aliyuncs.com";

    /**
     * bucket
     */
    public static final String OSS_BUCKET = "lkzy-chat-imgs";

    /**
     * OSS accesskey id
     */
    public static final String OSS_ACCESSKEY_ID = "LTAI5tBTQD6Y2tGu1QMZ1aRV";

    /**
     * OSS accesskey 秘钥
     */
    public static final String OSS_ACCESSKEY_SECRET = "fPY76LwoJfDYTaEcJ306oZNvwjqrZq";

    /**
     * OSS 头像存储路径
     */
    public static final String OSS_AVATAR_PATH = "avatar/";

    /**
     * oss聊天广场图片路径
     */
    public static final String OSS_MESSAGE_GROUP_IMG_PATH = "message/group/";

    public static final String OSS_AVATAR_URL_PREFIX = "https://lkzy-chat-imgs.oss-cn-beijing.aliyuncs.com/avatar/";
    public static final String OSS_MESSAGE_GROUP_IMG_URL_PREFIX = "https://lkzy-chat-imgs.oss-cn-beijing.aliyuncs.com/message/group/";

}
